.class Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;
.super Ljava/lang/Object;
.source "ImageSwitcherActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/ImageSwitcherActivity;->setListener()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    .line 506
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const v8, 0x7f020015

    const/4 v7, 0x2

    const/4 v6, 0x0

    .line 509
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$86(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v2

    const/4 v3, -0x1

    if-eq v2, v3, :cond_0

    .line 510
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$38(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$86(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v3

    invoke-virtual {v2, v3, v7}, Lcom/netease/newsreader/util/CollectUtil;->deleteAlreadyCollect(II)I

    .line 511
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-virtual {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0b0022

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 512
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$43(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$29(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$33(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ImageButton;

    move-result-object v4

    invoke-virtual {v2, v3, v4, v8}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    .line 531
    :goto_0
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$38(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$87(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$89(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5, v7}, Lcom/netease/newsreader/util/CollectUtil;->getAlreadyCollect(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v3

    invoke-static {v2, v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$90(Lcom/netease/newsreader/activity/ImageSwitcherActivity;I)V

    .line 533
    return-void

    .line 515
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 516
    .local v1, img:Ljava/lang/StringBuilder;
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$87(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 522
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$38(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v2

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$88(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$89(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5, v7}, Lcom/netease/newsreader/util/CollectUtil;->doCollectObject(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/Long;

    move-result-object v0

    .line 523
    .local v0, flag:Ljava/lang/Long;
    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    const-wide/16 v4, -0x1

    cmp-long v2, v2, v4

    if-nez v2, :cond_1

    .line 524
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$43(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$29(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$33(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ImageButton;

    move-result-object v4

    invoke-virtual {v2, v3, v4, v8}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    .line 525
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-virtual {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0b0024

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 527
    :cond_1
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$43(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$29(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$33(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ImageButton;

    move-result-object v4

    const v5, 0x7f020018

    invoke-virtual {v2, v3, v4, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    .line 528
    iget-object v2, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$13;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-virtual {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0b0023

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0
.end method
